﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
///Common 的摘要说明
/// </summary>
public class Common
{
    public Common()
    {
        //
        //TODO: 在此处添加构造函数逻辑
        //
    }

    public static void RegJQ(System.Web.UI.Page p)
    {
        System.Web.UI.WebControls.Literal lit = new System.Web.UI.WebControls.Literal();
        lit.Text = "<script src=\"../JS/jquery-1.3.2-vsdoc2.js\"></script>";

        p.Header.Controls.AddAt(1,lit);
    }

    public static string MD5(string str)
    {
         return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str, "MD5");
    }
}
